package chapter1012;

public class Resume {
    private String name;
    private String sex;
    private int age;
    Resume(){

    }
    Resume(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }
    public String getSex() {
        return sex;
    }
    public int getAge() {
        return age;
    }

    public void introduce(){
        System.out.println("姓名：" + name);
        System.out.println("性别：" + sex);
        System.out.println("年龄：" + age);
    }
}

class ResumeTest{
    public static void main(String[] args) {
        Resume a = new Resume("李四","男",20);
        a.introduce();
    }


}